function login() {
	$.post(basePath + "/login", {
		'password' : encryptByDES($("#password").val(), $("#token").val().split('-').join('')),
		'username' : $("#username").val(),
		"_csrf" : $("#token").val()
	}, function(data) {
		if (data.success) {
			location.href = basePath + "/index";
		} else {
			errorMsgToastr("登录失败", data.msg);
		}
	}, "json");

}
